qt: use QString::setNum() rather than QString::sprintf()
authorSteve Lhomme <robux4@ycbcr.xyz>
Wed, 18 Dec 2024 10:57:05 +0000 (11:57 +0100)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 21 Jan 2025 18:02:47 +0000 (19:02 +0100)
commitade8d9cbf6387076699f606ec904654d5f7c4214
tree1a02ac6ce0ba6416f33b3de1f2df63e853a758d8
parent42268c397eb9e2c1c8ddb2a75548513e60d70032
qt: use QString::setNum() rather than QString::sprintf()

It's deprecated and one of the replacement suggested in the doc [^1].
QString::asprint() might be the more logical choice, but it's also not recommended [^2].

[^1] https://doc.qt.io/qt-5/qstring-obsolete.html#sprintf
[^2] https://doc.qt.io/qt-5/qstring.html#asprintf

Gbp-Pq: Name 0121-qt-use-QString-setNum-rather-than-QString-sprintf.patch
modules/gui/qt/menus.cpp